<template>
  <div class="commonStyle">
    <div class="titleFont">{{ title }}</div>
    <div style="margin-right: 10px;">
      <slot></slot>
    </div>
  </div>

</template>

<script>
export default {
  name: 'tlTitle',
  props: {
    title: { type: String, default: '' }
  }

}
</script>

<style scoped>
.commonStyle {
  padding: 5px 0px;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

.titleFont {
  text-indent: 20px;
  font-size: 15px;
  line-height: 40px;
  font-weight: 550;
}

.titleFont::before {
  display: inline-block;
  content: '';
  width: 5px;
  height: 20px;
  background-color: #1c8b7d;
  border-radius: 3px;
  margin-right: 5px;
  position: relative;
  top: 4px;
}
</style>